﻿<p>功能介绍</p>
<ul class="ul-demo">
    <li>点击按钮弹出模态弹窗</li>
    <li>更改模态弹窗内数值点击 <code>确认</code> 按钮时数值 <b>更新</b></li>
    <li>更改模态弹窗内数值点击 <code>取消</code> 或者 <code>关闭</code> 按钮时数值 <b>不更新</b></li>
    <li>再次点击弹出模态弹窗时，数值保持一致</li>
</ul>
<Button @onclick="@OnResultDialogClick">点击打开 Dialog</Button>

@code {
    // 源码地址 https://gitee.com/LongbowEnterprise/BootstrapBlazor/blob/dev/src/BootstrapBlazor.Shared/Pages/Components/ResultDialogDemo.razor.cs
    var result = await DialogService.ShowModal<ResultDialogDemo>
    (new ResultDialogOption()
    {
    Title = "带返回值模态弹出框",
    ComponentParamters = new KeyValuePair<string, object>
        []
        {
        new(nameof(ResultDialogDemo.Value), DemoValue1),
        new(nameof(ResultDialogDemo.ValueChanged), EventCallback.Factory.Create<int>
            (this, v => DemoValue1 = v))
            }
            });
            }
